import { OlympicGuessAllData } from "../data/OlympicGuessAllData";
import { OlympicGuessData } from "../data/OlympicGuessData";
import { OlympicGuessDesc } from "../item/OlympicGuessDesc";
import { Language } from "../../../../../extend/language/Language";
import { OlympicGuessTodayItems } from "../item/OlympicGuessTodayItems";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { OlympicBonusItem } from "../item/OlympicBonusItem";
import { GameConst } from "../../../../component/gconst/GameConst";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
//class OlympicGuessTodayWin
    
    export  class OlympicGuessTodayWin /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        public updateDatas(arg1: OlympicGuessAllData): void
        {
            if (arg1 == null) 
            {
                return;
            }
            this._guessItems.updateData(arg1.dailyDatas);
            return;
        }

        public expandGuessTodayItem(arg1: OlympicGuessData): void
        {
            this._guessItems.expandGuessTodayItem(arg1);
            return;
        }

        public changeAnswerTipsToExpandType(): void
        {
            return;
        }

        public changeAnswerTipsToShrinType(): void
        {
            return;
        }

        /* internal  */initView(): void
        {
            var loc1=null;
            var loc2=null;
            this._desc = new OlympicGuessDesc();
            this._desc.x = 0;
            this._desc.y = 0;
            this._desc.desc = Language.getString(80001);
            this.addChild(this._desc);
            this._guessItems = new OlympicGuessTodayItems();
            this._guessItems.x = 27;
            this._guessItems.y = 71;
            this.addChild(this._guessItems);
            ObjCreate.createBg(71, 220, 564, 3, this, ImagesConst.SeptalLine);
            loc1 = Language.getString(80007);
            loc2 = ObjCreate.createGTextField("", 194, 230, 100, 20, this);
            loc2.htmlText = loc1;
            loc1 = Language.getString(80008);
            loc2 = ObjCreate.createGTextField("", 395, 230, 100, 20, this);
            loc2.htmlText = loc1;
            loc1 = Language.getString(80009);
            loc2 = ObjCreate.createGTextField("", 178, 247, 100, 20, this);
            loc2.htmlText = loc1;
            loc1 = Language.getString(80010);
            loc2 = ObjCreate.createGTextField("", 385, 247, 100, 20, this);
            loc2.htmlText = loc1;
            this._bg = new Object /* flash.display.Bitmap */();
            this._bg.x = 158;
            this._bg.y = 230;
            this.addChild(this._bg);
            var loc3=new OlympicBonusItem(GameConst.OlympicGuessDailyRight, 1);
            loc3.x = 261;
            loc3.y = 230;
            this.addChild(loc3);
            var loc4;
            (loc4 = new OlympicBonusItem(GameConst.OlympicGuessDailyWrong, 1)).x = 468;
            loc4.y = 230;
            this.addChild(loc4);
            return;
        }

        /* internal */ /* var */_desc: OlympicGuessDesc;

        /* internal */ /* var */_guessItems: OlympicGuessTodayItems;

        /* internal */ /* var */_bg: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_txtAnswerTips: GTextFiled;
    }
